<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <meta http-equiv="X-UA-Compatible" content="ie=edge">
    <title>Document</title>
    <style>
        * {
            padding: 0;
            margin: 0;
        }
    </style>
</head>
<body>
    <script src="https://cdnjs.cloudflare.com/ajax/libs/pixi.js/4.5.5/pixi.min.js"></script>
    <script>
        let cat, state;
        let TextureCache = PIXI.utils.TextureCache,
            loader = PIXI.loader,
            Sprite = PIXI.Sprite,
            resources = PIXI.loader.resources,
            Application = PIXI.Application,
            Graphics = PIXI.Graphics,
            TextStyle  = PIXI.TextStyle,
            Text = PIXI.Text

        let app = new PIXI.Application({ width: window.innerWidth, height: window.innerHeight })

        console.log(app)
        document.body.appendChild(app.view)

        let style = new TextStyle({
            fontFamily: "Arial",
            fontSize: 36,
            fill: "white",
            stroke: '#ff3300',
            strokeThickness: 4,
            dropShadow: true,
            dropShadowColor: "#000000",
            dropShadowBlur: 4,
            dropShadowAngle: Math.PI / 6,
            dropShadowDistance: 6,
        });

        let message = new Text("Hello Pixi!", style);
        message.style = { fill: "white", wordWrap: true, wordWrapWidth: 100, align: "center" }
        app.stage.addChild(message);
    </script>
</body>
</html>